﻿@model KRM.Core.tblPersonal

@{
    ViewBag.Title = "Edit Employees Info";
    ViewBag.UrlLink = "/Employees";
    Layout = "/views/shared/_HRLayout.cshtml";
}
<script src="/hr/js/HolidayManagement.js"type="text/javascript"></script>

<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                <h3 class="page-title">
            Employees <small>Edit Employeess</small>
        </h3>
        <!-- END PAGE TITLE & BREADCRUMB-->
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="icon-home"></i>
                <a href="/Home">Home</a> 
                <span class="icon-angle-right"></span>
            </li>
            <li>
                <a href="/Employees">Management</a>
                <span class="icon-angle-right"></span>
            </li>
            <li><a href="/Employees">Employees</a>
                <span class="icon-angle-right"></span>
            </li>
             <li><a href="/Employees/EditEmployees/@Model.Id">@Model.FullName</a>
            </li>
        </ul>
    </div>
        <div class="col-md-12">
        @Html.Partial("Partial/_MessageResult")
    </div>
</div>
<div class="tabbable tabbable-custom tabbable-full-width">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#tab_personalInfo" data-toggle="tab">Employees Info</a></li>
        <li><a href="#tab_Position" data-toggle="tab">Position Info</a></li>
        <li><a href="#tab_MedicalQuestionare" data-toggle="tab">Medical Information</a></li>
        <li><a href="#tab_NextOfKin" data-toggle="tab">Next of Kin</a></li>
        <li><a href="#tab_BankAccount" data-toggle="tab">Bank Account</a></li>
        <li><a href="#tab_HolidayRequest" data-toggle="tab">Holiday Request</a></li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="tab_personalInfo">
                       @Html.Partial("_EditEmployeesInfo")
        </div>    
                <div class="tab-pane " id="tab_Position">
                    @Html.Action("PersonalPositionInfo","PersonalPosition",Model)
                </div>    
                                  <div class="tab-pane " id="tab_MedicalQuestionare">
                                      @Html.Action("MedicalQuestionare","Personal",Model.Id)
                                  </div>     
                  <div class="tab-pane " id="tab_NextOfKin">
                      @Html.Action("Index","NextOfKin",Model)
                  </div>                 
                  <div class="tab-pane " id="tab_BankAccount">
                      @Html.Action("BankAccountDetail","BankAccount",Model)
                  </div>     
                  <div class="tab-pane " id="tab_HolidayRequest">
                       @Html.Action("EmployeeRequest","HolidayManagement",new {personalid=Model.Id})
                  </div>          

    </div>
    <!--end tab-pane-->
</div>
<!-- END FORM-->                
